package com.party.admin.web.controller.distribution;

import com.party.admin.biz.distribution.DistributorCountBizService;
import com.party.admin.web.dto.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 分销统计控制器
 * Created by wei.li.
 *
 * @date 2018/2/5 0005
 * @time 18:20
 */

@Controller
@RequestMapping(value = "distributor/count")
public class DistributorCountController {

    @Autowired
    private DistributorCountBizService distributorCountBizService;

    /**
     * 初始化联合发起成功数
     *
     * @return 交互数据
     */
    @ResponseBody
    @RequestMapping(value = "init")
    public AjaxResult init(){
        distributorCountBizService.init();
        return AjaxResult.success();
    }
}
